/* nav-styles.css - 导航栏专用样式 */

/* 基础重置 - 导航栏需要的基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden; /* 防止水平滚动条 */
}

/* 填满上部和左右的无圆角导航栏 */
.full-width-nav {
    display: flex;
    justify-content: center;
    gap: 0; /* 移除间距，让按钮更紧密 */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0; /* 移除内边距 */
    width: 100vw; /* 100%视口宽度 */
    margin: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0; /* 移除圆角 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* 导航链接样式 - 填满高度，无圆角 */
.full-width-nav .nav-item {
    padding: 18px 30px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    font-weight: 500;
    border-radius: 0; /* 移除圆角 */
    height: 100%; /* 填满导航栏高度 */
    flex: 1; /* 等分宽度 */
    text-align: center;
}

/* 移除最后一个按钮的右边框 */
.full-width-nav .nav-item:last-child {
    border-right: none;
}

/* 悬停效果 */
.full-width-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(0); /* 移除上浮效果 */
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* Active状态 - 明确标识当前页面 */
.full-width-nav .nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    position: relative;
}

/* Active状态的下划线指示 */
.full-width-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: white;
    box-shadow: 0 -2px 5px rgba(255, 255, 255, 0.3);
}

/* 图标样式 */
.full-width-nav .nav-item i {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .full-width-nav {
        flex-wrap: wrap;
    }
    
    .full-width-nav .nav-item {
        padding: 15px 10px;
        font-size: 14px;
        min-width: 80px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex: 1 0 25%; /* 每行最多4个 */
    }
    
    .full-width-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    /* 移动端下active状态的下划线在底部 */
    .full-width-nav .nav-item.active::after {
        height: 3px;
    }
}